import 'package:cloud_medicine/model/author_basic_info.dart';

class NoticeMessageItem {
  final int id;
  final AuthorBasicInfo author;
  final String createTime;
  final String abstract;

  NoticeMessageItem({
    this.id,
    this.author,
    this.createTime,
    this.abstract,
  });

  factory NoticeMessageItem.init(Map<String, dynamic> json) {
    return NoticeMessageItem(
      id: json['noticeId'],
      author: AuthorBasicInfo.init(json['author']),
      createTime: json['createTime'],
      abstract: json['abstracttest'],
    );
  }
}

List<NoticeMessageItem> NoticeMessageListModel = [
  NoticeMessageItem.init({
    'id': 1,
    "author": {
      "id": 1,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户1",
    },
    'createTime': '3个月前',
    'abstract': '网上事务是是网上先刷后续沙墟话啥U型好耍雪花砂胡须啥活下去阿虎潇洒潇洒新华社'
  }),
  NoticeMessageItem.init({
    'id': 2,
    "author": {
      "id": 2,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户2",
    },
    'createTime': '3个月前',
    'abstract': '网上事务是是网上 我'
  }),
  NoticeMessageItem.init({
    'id': 3,
    "author": {
      "id": 3,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户3",
    },
    'createTime': '3个月前',
    'abstract': '网上事务是是网上 我'
  }),
  NoticeMessageItem.init({
    'id': 4,
    "author": {
      "id": 4,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户4",
    },
    'createTime': '3个月前',
    'abstract': '网上事务是是网上 我'
  }),
  NoticeMessageItem.init({
    'id': 5,
    "author": {
      "id": 5,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户5",
    },
    'createTime': '3个月前',
    'abstract': '网上事务是是网上 我'
  }),
  NoticeMessageItem.init({
    'id': 6,
    "author": {
      "id": 6,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户6",
    },
    'createTime': '3个月前',
    'abstract': '网上事务是是网上 我'
  }),
  NoticeMessageItem.init({
    'id': 7,
    "author": {
      "id": 7,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户7",
    },
    'createTime': '3个月前',
    'abstract': '网上事务是是网上 我'
  }),
  NoticeMessageItem.init({
    'id': 8,
    "author": {
      "id": 8,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户8",
    },
    'createTime': '3个月前',
    'abstract': '网上事务是是网上 我'
  }),
];